<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'show.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<style type="text/css">
		tr{width:200px;}
		td{width:25px;}
		th{width:25px;}
		*{text-align:center;}
	</style>



  </head>
  
  <body>
    <div style="width:800px;margin:0 auto;">
    	<table border="1" style="width:600px;">
    		<tr>
    			<th>商品编号</th>
    			<th>商品名称</th>
    			<th>商品价格</th>
    			<th>库存数量</th>
    			<th>订单状态</th>
    			<th>操作</th>
    		</tr>
    		<c:forEach items="${list }" var="g">
    			<tr>
    				<td>${g.id }</td>
    				<td>${g.goodsName }</td>
    				<td>${g.goodsPrice }</td>
    				<td>${g.goodsCount }</td>
    				<td>  <c:if test="${g.billStatus==0 }">待处理</c:if><c:if test="${g.billStatus==1 }">处理中</c:if><c:if test="${g.billStatus==2 }">已处理</c:if></th>
    				<td><a href="goModify?id=${g.id }">修改</a></td>
    			</tr>
    		</c:forEach>
    		
    	</table>
    </div>
  </body>
</html>
